package com.swust.book_shop.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

import io.swagger.models.auth.In;
import lombok.Data;

/**
 * 
 * @TableName book_info
 */
@TableName(value ="book_info")
@Data
public class BookInfo implements Serializable {
    /**
     * 自增id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 书名
     */
    @TableField(value = "book_name")
    private String bookName;

    /**
     * ISBN号
     */
    @TableField(value = "book_isbn")
    private String bookIsbn;

    /**
     * 发布者id
     */
    @TableField(value = "publisher_id")
    private Integer publisherId;

    /**
     * 价格
     */
    @TableField(value = "price")
    private BigDecimal price;

    /**
     * 库存量
     */
    @TableField(value = "stock")
    private Integer stock;

    /**
     * 
     */
    @TableField(value = "update_time")
    private LocalDateTime updateTime;

    /**
     * 
     */
    @TableField(value = "create_time")
    private LocalDateTime createTime;

    /**
     * 是否删除
     */
    @TableField(value = "is_deleted")
    private String isDeleted;

    /**
     * 图书类型id
     */
    @TableField(value = "category_id")
    private Integer categoryId;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}